package com.ncucoder.soms.service;

import com.ncucoder.soms.dto.DisplayProviderDTO;
import com.ncucoder.soms.entity.Provider;

import java.util.List;

/**
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @date 2019-07-10
 **/
public interface ProviderService {
    /**
     *
     * @param page
     * @param pageSize
     * @return
     */
    List<Provider> listProviders(int page, int pageSize);

    /**
     *
     * @return
     */
    int countProviders();

    /**
     *
     * @param id
     * @return
     */
    int deleteProviderById(Long id);

    /**
     *
     * @param provider
     * @return
     */
    int addProvider(Provider provider);

    /**
     *
     * @param provider
     * @return
     */
    int updateProvider(Provider provider);

    /**
     *
     * @return
     */
    List<DisplayProviderDTO> listAllProviderNames();
}
